package grpc.rpcserver.service.impl;

import grpc.rpcprotocol.entity.DepartmentInfo;
import grpc.rpcprotocol.service.DepartmentService;

/**
 * @Author: admin
 * @Description:
 * @Date: 2018/9/28 15:39
 */

public class DepartmentServiceImpl implements DepartmentService {

    @Override
    public String addDepartment(DepartmentInfo departmentInfo) {
        System.out.println("id: " + departmentInfo.getId() + "\tname: " + departmentInfo.getName());
        return "新增部门id" + departmentInfo.getId() + "成功......";
    }
}
